<div class="bg-light lter b-b wrapper-md ng-scope">
    <h4 class="m-n font-thin">查看商户</h4>
    <button ui-sref="app.chain" class="btn-back btn btn-dark btn-sm btn-rounded">
        返回
    </button>
</div>
<div class="wrapper-md" ng-controller="chainViewCtrl">
    <div class="panel panel-default">
        <div class="panel-heading m-n">
            连锁品牌信息
        </div>
        <div class="panel-body">
            <form name="chainEditform" class="form-horizontal ng-pristine ng-valid ng-valid-date ng-valid-required ng-valid-parse ng-valid-date-disabled"
                  method="PUT" ng-submit="editChain()">
                <div class="form-group">
                    <label class="col-sm-2 control-label">行业</label>
                    <div class="col-sm-5">
                        <select class="form-control" ng-model="chain.industryId" ng-options="industry.id as industry.name for industry in industryData" readonly></select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">套餐</label>
                    <div class="col-sm-5">
                        <select class="form-control" ng-model="chain.setMealId" ng-options="setMeal.id as setMeal.name for setMeal in setMealData" readonly></select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">联系人</label>
                    <div class="col-sm-5">
                        <input type="text" ng-model="chain.linkman" class="form-control" readonly>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">联系电话</label>
                    <div class="col-sm-5">
                        <input type="text" ng-model="chain.mobilePhone" class="form-control" readonly>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">品牌连锁名称</label>
                    <div class="col-sm-5">
                        <input type="text" ng-model="chain.name" class="form-control" readonly>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">到期时间</label>
                    <div class="col-sm-5" >
                        <div class="inline" ng-controller="DatepickerDemoCtrl">
                            <div class="input-group w-full">
                                <input type="text" class="form-control" placeholder="请输入到期时间" alt-input-formats="altInputFormats" uib-datepicker-popup="yyyy-MM-dd" datepicker-popup="yyyy-MM-dd" ng-model="chain.expireTime"
                                       alt-input-formats="altInputFormats" is-open="opened" min-date="minDate" datepicker-options="dateOptions" close-text="关闭" clear-text="清空" current-text="今天" readonly/>
                                    <span class="input-group-btn">
                                        <button type="button" class="btn btn-default" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>
                                    </span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">是否分销</label>
                    <div class="col-sm-10">
                        <div class="pull-left">
                            <label class="i-switch m-t-xs m-r">
                                <input type="checkbox"  ng-model="chain.isOpenSell" ng-true-value="1" ng-false-value="0" disabled>
                                <i></i>
                            </label>
                        </div>
                        <label class="pull-left m-t-xs" ng-bind="{1:'已开启',0:'未开启'}[chain.isOpenSell]"></label>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label">是否返利</label>
                    <div class="col-sm-10">
                        <div class="pull-left">
                            <label class="i-switch m-t-xs m-r">
                                <input type="checkbox"  ng-model="chain.isOpenRebate" ng-true-value="1" ng-false-value="0" disabled>
                                <i></i>
                            </label>
                        </div>
                        <label class="pull-left m-t-sm" ng-bind="{1:'已开启',0:'未开启'}[chain.isOpenRebate]"></label>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>




